package com.liull.spring_anno;

import com.liull.spring_anno.bean.Person;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Arrays;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 22:57 2020/4/8
 * @Modified By:
 */
public class ApplicationBasedOnXml {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:beans.xml");
        Person person = (Person) applicationContext.getBean("person");
        System.out.println(person);
        Arrays.asList(1, 3, 4, 2).stream().sorted();
    }
}
